package com.qingmi.farmer.data.request;

import com.qingmi.farmer.data.DataSetting;
import com.wjjun.basemvpvm.data.request.BaseRequest;

/**
 * 获取全部商品
 */
public class GetGoodsListReq extends BaseRequest {

    //大类 1 生资 2、科技服务
    private int ClassId = 1;

    //页码
    private int PageIndex = 1;

    //商品类型
    private String TypeId;

    //供应商Id
    private String SupplierId;

    //1 价格升序 2 价格降序 3 销量升序 4 销量降序
    private int OrderType;

    private String Search;

    private Boolean isNearby;

    public Boolean getNearby() {
        return isNearby;
    }

    public void setNearby(Boolean nearby) {
        isNearby = nearby;
    }

    public String getTypeId() {
        return TypeId;
    }

    public void setTypeId(String typeId) {
        this.TypeId = typeId;
    }

    public String getSupplierId() {
        return SupplierId;
    }

    public void setSupplierId(String supplierId) {
        this.SupplierId = supplierId;
    }

    public int getOrderType() {
        return OrderType;
    }


    public int getPageIndex() {
        return PageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.PageIndex = pageIndex;
    }

    public void setOrderType(int orderType) {
        this.OrderType = orderType;
    }

    public int getClassId() {
        return ClassId;
    }

    public void setClassId(int classId) {
        ClassId = classId;
    }

    public String getSearch() {
        return Search;
    }

    public void setSearch(String search) {
        Search = search;
    }

    public void reset() {
        PageIndex = 1;
        TypeId = "0";
        SupplierId = "0";
        Search = "";
        OrderType = DataSetting.GOODS_SORT_DEFAULT;
    }




}
